<load file="__PUBLIC__/public.html"/>
<div class='now_path'>
		<strong>您现在的位置是:</strong>
		权限管理>用户组权限控制
</div>
<fieldset class='field_tishi'>
	<legend>操作提示</legend>
	请注意权限的父子关系！
</fieldset>
<div class="send1">
    <a href="__WEB__/admin/rbac/role_add_show" target="con" class="current button1">添加用户组</a>
	<a href="__WEB__/admin/rbac/node_add_show" target="con" class="current button1">添加节点</a>
</div>
<form action="__CONTROL__/access_add_exe" method="post">
<input type='hidden' name='rid' value='{$hd.get.rid}' />
<?php foreach($node as $v){ ?>
<div class='show_node'>
	<table class='table4'>
		<tr style=' text-align:center;'>
		<th colspan='2'>
			<label><input type="checkbox"  name="node[]" value="{$v['nid']}" class="check" <empty value="{$v['access']}"><noempty/>checked="checked" </empty> />
			<span style='font-size:16px; font-weight:bolder;'>{$v['title']}<strong>({$v['name']})</strong></span></label>
        </th></tr>
		<tr><th  style='background:#ffd9f2;'>控制器</th><td style='background:#dbfdf9; font-weight:bolder;'>方法</td></tr>
		<?php if(isset($v['node']) && is_array($v['node'])){
        foreach($v['node'] as $m){ ?>
		<tr>
			<th width='200' style='background:#ffd9f2;'>
				<label><input type="checkbox"  name="node[]" value="{$m['nid']}" class="check" <empty value="{$m['access']}"><noempty/>checked="checked" </empty>/>
				{$m['title']}<strong>({$m['name']})</strong></label><br />
			</th>
			<?php if(!empty($m['node'])){ ?>
			<td style='background:#dbfdf9;'>
				<ul>
	                <?php foreach($m['node'] as $j){ ?>
	                <li style=' float:left; margin-left:10px; border-bottom:1px solid #999;'>
						 <label><input type="checkbox"  name="node[]" value="{$j['nid']}" class="check" <empty value="{$j['access']}"><noempty/> checked="checked"</empty>/>
	                    {$j['title']}<strong>({$j['name']})</strong></label>
	                </li>
	                <?php } ?>
	            </ul>
			</td>
			<?php }else{ ?>
			<td style='background:#dbfdf9;'></td>
			<?php }?>
		</tr>
		
		<?php } } } ?>	
	</table>
	<div style='width:100%;border:1px solid #AACCEE;padding:10px 0px; text-align:center;'>
		<input type='submit' value='提交' class='button2' />
	</div>	
</form>
</div>
</body>
</html>
